home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11167 < prev    next >
Encoding:
Text File  |  1996-08-05  |  911 b   |  38 lines

  1. Newsgroups: comp.lang.c++
  2. Path: howland.reston.ans.net!torn!news!apollo!saed
  3. From: saed@engn.uwindsor.ca (Saed Aryan,13325,1100,g)
  4. Subject: Re: [Q] how declare a Template class as a friend
  5. X-Nntp-Posting-Host: apollo.engn.uwindsor.ca
  6. Message-ID: <Do6DDq.61C@news.uwindsor.ca>
  7. Keywords: template, friend
  8. Sender: news@news.uwindsor.ca (Usenet)
  9. Reply-To: saed@engn.uwindsor.ca
  10. Organization: VLSI Research Group - University of Windsor
  11. Date: Tue, 12 Mar 1996 22:05:50 GMT
  12.  
  13. Hi all,
  14.  
  15. my question was (full mail available by request):
  16.  
  17. > --- How do you declare a template class to be a friend of
  18. >     another non-template class?
  19.  
  20. and Dave Fernandes replied: 
  21.  
  22. >What if you declare your template class A as a subclass of some other
  23. >abstract class C, and have C be a friend of B?
  24.  
  25. My reply: the friendship between C and B is not inherited by A<T>, so again the
  26. problem is not solved. 
  27.  
  28. Any suggestions?
  29.  
  30. Aryan.
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.